from common.database import db


class Verify(db.Model):
    __tablename__ = 'verify'
    email = db.Column(db.String, primary_key=True)
    code = db.Column(db.String)
    val_time = db.Column(db.DateTime)

    def to_dict(self):
        return {
            'email': self.email,
            'code': self.code,
            'val_time': self.val_time
        }
